package com.cy.pj.common.factory;


import com.cy.pj.common.util.SpringUtils;
import com.cy.pj.sys.service.IApprovalDetailService;

public class ServiceFactory {
    public static IApprovalDetailService getService(Integer moduleId) throws ClassNotFoundException {
        if (moduleId == 1) {
            return SpringUtils.getBean("leaveDetailService");
        } else {
            return null;
        }
    }
}
